
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="zh_Hans">
  <head>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>操作指南 &#8212; Django 3.2.6.dev 文档</title>
    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/language_data.js"></script>
    <link rel="index" title="索引" href="../genindex.html" />
    <link rel="search" title="搜索" href="../search.html" />
    <link rel="next" title="使用 REMOTE_USER 进行身份验证" href="auth-remote-user.html" />
    <link rel="prev" title="Asynchronous support" href="../topics/async.html" />



 
<script src="../templatebuiltins.js"></script>
<script>
(function($) {
    if (!django_template_builtins) {
       // templatebuiltins.js missing, do nothing.
       return;
    }
    $(document).ready(function() {
        // Hyperlink Django template tags and filters
        var base = "../ref/templates/builtins.html";
        if (base == "#") {
            // Special case for builtins.html itself
            base = "";
        }
        // Tags are keywords, class '.k'
        $("div.highlight\\-html\\+django span.k").each(function(i, elem) {
             var tagname = $(elem).text();
             if ($.inArray(tagname, django_template_builtins.ttags) != -1) {
                 var fragment = tagname.replace(/_/, '-');
                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + tagname + "</a>");
             }
        });
        // Filters are functions, class '.nf'
        $("div.highlight\\-html\\+django span.nf").each(function(i, elem) {
             var filtername = $(elem).text();
             if ($.inArray(filtername, django_template_builtins.tfilters) != -1) {
                 var fragment = filtername.replace(/_/, '-');
                 $(elem).html("<a href='" + base + "#" + fragment + "'>" + filtername + "</a>");
             }
        });
    });
})(jQuery);</script>

  </head><body>

    <div class="document">
  <div id="custom-doc" class="yui-t6">
    <div id="hd">
      <h1><a href="../index.html">Django 3.2.6.dev 文档</a></h1>
      <div id="global-nav">
        <a title="Home page" href="../index.html">Home</a>  |
        <a title="Table of contents" href="../contents.html">Table of contents</a>  |
        <a title="Global index" href="../genindex.html">Index</a>  |
        <a title="Module index" href="../py-modindex.html">Modules</a>
      </div>
      <div class="nav">
    &laquo; <a href="../topics/async.html" title="Asynchronous support">previous</a>
     |
    <a title="Django 3.2.6.dev 文档" href="../index.html" accesskey="U">up</a>
   |
    <a href="auth-remote-user.html" title="使用 &lt;code class=&#34;docutils literal notranslate&#34;&gt;&lt;span class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt; 进行身份验证">next</a> &raquo;</div>
    </div>

    <div id="bd">
      <div id="yui-main">
        <div class="yui-b">
          <div class="yui-g" id="howto-index">
            
  <div class="section" id="s-how-to-guides">
<span id="how-to-guides"></span><h1>操作指南<a class="headerlink" href="#how-to-guides" title="永久链接至标题">¶</a></h1>
<p>你将在此找到大量回答形如“我该如何……”问题的简答。这些怎么做指南不会深入各个主题——你可以在 <a class="reference internal" href="../topics/index.html"><span class="doc">Using Django</span></a> 和 <a class="reference internal" href="../ref/index.html"><span class="doc">API 参考</span></a> 找到深入的讲解。不过，这些指引可以帮你快速完成常见的任务。</p>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="auth-remote-user.html">使用 <code class="docutils literal notranslate"><span class="pre">REMOTE_USER</span></code> 进行身份验证</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom-management-commands.html">编写自定义 <code class="docutils literal notranslate"><span class="pre">django-admin</span></code> 命令</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom-model-fields.html">编写自定义模型字段(model fields)</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom-lookups.html">自定义查询器</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom-template-backend.html">自定义模板的后端</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom-template-tags.html">自定义模板标签和过滤器</a></li>
<li class="toctree-l1"><a class="reference internal" href="custom-file-storage.html">编写一个自定义存储系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="deployment/index.html">部署 Django</a></li>
<li class="toctree-l1"><a class="reference internal" href="upgrade-version.html">升级 Django 到最新的版本</a></li>
<li class="toctree-l1"><a class="reference internal" href="error-reporting.html">发送错误</a></li>
<li class="toctree-l1"><a class="reference internal" href="initial-data.html">为模型提供初始化的数据</a></li>
<li class="toctree-l1"><a class="reference internal" href="legacy-databases.html">Django 使用旧有的数据库</a></li>
<li class="toctree-l1"><a class="reference internal" href="outputting-csv.html">利用 Django 输出 CSV</a></li>
<li class="toctree-l1"><a class="reference internal" href="outputting-pdf.html">利用 Django 输出 PDF</a></li>
<li class="toctree-l1"><a class="reference internal" href="overriding-templates.html">复写模板</a></li>
<li class="toctree-l1"><a class="reference internal" href="static-files/index.html">管理静态文件（比如图片、JavaScript、CSS）</a></li>
<li class="toctree-l1"><a class="reference internal" href="static-files/deployment.html">部署静态文件</a></li>
<li class="toctree-l1"><a class="reference internal" href="windows.html">如何在 Windows 上安装 Django</a></li>
<li class="toctree-l1"><a class="reference internal" href="writing-migrations.html">编写数据库迁移语句</a></li>
</ul>
</div>
<div class="admonition seealso">
<p class="first admonition-title">参见</p>
<p class="last"><a class="reference external" href="https://www.djangoproject.com/community/">Django 聚合社区</a>，我们将全球 Django 社区的内容聚合至此。聚合社区中的很多作者编写了本快速指南文档。</p>
</div>
</div>


          </div>
        </div>
      </div>
      
        
          <div class="yui-b" id="sidebar">
            
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
  <h4>上一个主题</h4>
  <p class="topless"><a href="../topics/async.html"
                        title="上一章">Asynchronous support</a></p>
  <h4>下一个主题</h4>
  <p class="topless"><a href="auth-remote-user.html"
                        title="下一章">使用 <code class="docutils literal notranslate"><span class="pre">REMOTE_USER</span></code> 进行身份验证</a></p>
  <div role="note" aria-label="source link">
    <h3>本页</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/howto/index.txt"
            rel="nofollow">显示源代码</a></li>
    </ul>
   </div>
<div id="searchbox" style="display: none" role="search">
  <h3>快速搜索</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="转向" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    </div>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
              <h3>Last update:</h3>
              <p class="topless">7月 23, 2021</p>
          </div>
        
      
    </div>

    <div id="ft">
      <div class="nav">
    &laquo; <a href="../topics/async.html" title="Asynchronous support">previous</a>
     |
    <a title="Django 3.2.6.dev 文档" href="../index.html" accesskey="U">up</a>
   |
    <a href="auth-remote-user.html" title="使用 &lt;code class=&#34;docutils literal notranslate&#34;&gt;&lt;span class=&#34;pre&#34;&gt;REMOTE_USER&lt;/span&gt;&lt;/code&gt; 进行身份验证">next</a> &raquo;</div>
    </div>
  </div>

      <div class="clearer"></div>
    </div>
  </body>
</html>